<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: purple;
        }

        .box {
            position: relative;
            width: 100px;
            height: 100px;
            border: 20px solid white;
            border-radius: 50%;
            margin: 200px auto;
            animation: move 2s linear infinite;
        }

        .box1 {
            position: absolute;
            left: -5px;
            top: 0;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: yellow;
            text-align: center;
        }

        .box2 {
            position: absolute;
            left: 85px;
            top: 0;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: green;
            text-align: center;
        }
        .box3 {
            position: absolute;
            left: 40px;
            top: -20px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: blue;
            text-align: center;
        }
        /* .box4 {
            position: absolute;
            left: 30px;
            top: -20px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: blue;
            text-align: center;
        } */
        @keyframes move {
            50% {
                transform: rotate(180deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="box1">1</div>
        <div class="box2">2</div>
        <div class="box3">3</div>
        <div class="box4">4</div>
    </div>
</body>

</html>